package com.hmdp.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MQConfig {
    @Bean
    public Queue queue() {
        //队列
        return new Queue("queue", true);//开启持久化
    }
}
